<template>
    <div class="acceptanceRegistration-increase">
        <!-- 新增弹窗 -->
        <a-modal
         :width=720
         :visible="visibleShow" 
         title="详情" 
         @ok="visibleShow = false" 
         :forceRender="true"
         :confirmLoading="confirmLoading"
         @cancel="visibleShow = false">
            <a-spin size="large" :spinning="spinning">
                <a-form v-if="visibleShow" :form="form" layout="inline" >
                    <a-form-item label="任务名称">
                        {{ formState.frwmc }}
                    </a-form-item>
                    <div></div>
                    <a-form-item label="方法名称">
                        {{formState.fmethod}}
                    </a-form-item>
                    <div></div>
                    <a-form-item label="开始时间">
                        {{formState.startTime}}
                    </a-form-item>
                    <div></div>
                    <a-form-item label="结束时间">
                        {{formState.endTime}}
                    </a-form-item>
                    <div></div>
                    <a-form-item label="执行内容">
                        {{formState.fzxnr}}
                    </a-form-item>
                    <div></div>
                    <a-form-item label="执行状态">
                        {{formState.fzxzt}}
                    </a-form-item>
                    <div></div>
                    <a-form-item label="异常情况">
                        {{formState.fycqk}}
                    </a-form-item>
                    <div></div>
                    <a-form-item label="执行情况">
                        {{formState.fzxqk}}
                    </a-form-item>
                </a-form>
            </a-spin>
        </a-modal>
    </div>
</template>
<script>
import {typeInput, typeNumber, typeSelect, typeCheckbox, typeRadio} from '@/components/compSearchCriteria/ContractType'
import { queryJobLogPageById } from './service/index'
import compSelector from '@/components/compSelector/compSelector'
import validator from '@/common/validator'
export default {
    components:{
        compSelector
    },
    data(){
        return{
            addEditParameter:{},
            spinning:true,
            form: this.$form.createForm(this, { name: 'coordinated' }),
            visibleShow:false,
            confirmLoading:false,
            typeSelect:typeSelect,
            formState:{},
            rules:{
                mbName: [{
                    required: true,
                    message: '请输入模板名称',
                    trigger: 'blur',
                }],
            },
            formRequer:'',
            optionsArr:[],
            submittedSuccessfully:false,
        }
    },
    mounted(){
    },
    updated(){
        this.cancelLoading()
    },
    methods:{
        getData(val){
            this.addEditParameter = val
            this.formState = val
            queryJobLogPageById({fzxrwid:val.id}).then(res=>{
                if(res.code == 200){
                    this.formState.fzxnr = res.result.records[0].fzxnr
                }else{
                    this.$message.warning(res.message)
                }
            })
        },
        cancelLoading(){
            let timer = setInterval((val)=>{
                this.spinning = false
                clearInterval(timer);
            },500)
            
        },
    }

}

</script>
<style lang="less">
/* .ant-form-item-label{
    font-weight: 600;
} */
.acceptanceRegistration-increase{
    .ant-modal-title{
        font-weight: 600;
    }
    .ant-modal-header{
        background: #5ca3e5;
    }
    .ant-upload-list{
        display: none !important;
    }
    .ant-modal-footer .ant-btn-primary{
        border: 1px solid #5ca3e5 !important;
        background-color: #5ca3e5 !important;
        color: #fff !important;
    }
}
 
</style>